home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir36 / getday10.zip / GETDAY.DOC < prev    next >
Text File  |  1993-12-04  |  2KB  |  70 lines

  1.  
  2.  
  3.  
  4.                             CKWare's GetDay
  5.                               Version 1.00
  6.  
  7.                      A Batch File enhancing command
  8.                   to allow testing for the day of the week.
  9.  
  10.           Copyright (c) 1993 Chad Knudson, All Rights Reserved
  11.  
  12.                             By Chad Knudson
  13.                             December 4, 1993
  14.  
  15.  
  16.         CKWare's GetDay is a batch file utility that places the day of the
  17.     week in an environment variable.  The reason to have this utility is 
  18.     to control different events based on the day of the week.  For 
  19.     example, if you want to do a full virus scan on Thursdays, you can 
  20.     add a few lines in your AUTOEXEC.BAT file and GetDay can trigger the 
  21.     activity only on Thursdays.
  22.  
  23.     ------------
  24.     @Echo off
  25.     Cls
  26.     GETDAY
  27.     if not %TODAY%==THURSDAY goto skipscan
  28.     cd \scan
  29.     scan C:
  30.     :skipscan
  31.     echo This is our normal everyday portion...
  32.  
  33.     GetDay will fill in a variable TODAY with the day of the week.  You 
  34.     can simply use the DOS if command in your batch file to test the 
  35.     string for a particular day.
  36.  
  37.  
  38.  
  39.  
  40.     About GetDay and CKWare
  41.     -----------------------
  42.     GetDay was written by Chad Knudson while attending the University of
  43.     North Dakota majoring in Computer Science and Mathematics.  It was 
  44.     written in 'C' and compiled with Microsoft C 7.0.
  45.  
  46.     Chad has developed a number of utilities for Bulletin Board Systems 
  47.     as well as DOS utilities.  To see the latest collection of CKWare 
  48.     products, call City Lites BBS (701) 772-5399.
  49.  
  50.     Questions, comments, and bug reports can be e-mailed to:
  51.  
  52.                                 Internet
  53.                                ──────────
  54.                         knudson@cs.und.nodak.edu
  55.  
  56.                                   RIME
  57.                                ──────────
  58.                                ->CITYLITE
  59.  
  60.                                   FIDO
  61.                                ──────────
  62.                                 1:14/644
  63.  
  64.     A special thanks goes out to H. D. Todd, Wesleyan University, for 
  65.     steering me in the right direction as to how one could manipulate 
  66.     variables in the parent process' environment (the documentation in 
  67.     the C Compilers said that this could not be done, at least not using 
  68.     the putenv() function that the compiler provides.)  Without his help 
  69.     this program wouldn't have been possible.
  70.